﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Data;
using System.Web.Services.Protocols;
using System.Data.SqlClient;

namespace Aliyeye.Car.Net.WebService
{
    /// <summary>
    /// PageDataService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。
    // [System.Web.Script.Services.ScriptService]
    public class PageDataService : BaseWebService
    {
        public BLL.PageData Bll = new BLL.PageData();

        [SoapHeader("soapHeader")]
        [WebMethod(Description = "获取所有分页列表")]
        public DataSet GetList(Model.PageData value)
        {
            return Bll.GetList(value);
        }

        [SoapHeader("soapHeader")]
        [WebMethod(Description = "执行语句，获取第一行第一列")]
        public int ExecuteScalar(string strSql)
        {
            return Bll.ExecuteScalar(strSql);
        }
    }
}
